package com.rightsidetech.system.mapper;

import com.rightsidetech.system.entity.SysRoleResource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleResourceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysRoleResource record);

    int insertSelective(SysRoleResource record);

    SysRoleResource selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRoleResource record);

    int updateByPrimaryKey(SysRoleResource record);

    int insertRoleResouceList(List<SysRoleResource> list);

    int delByRoleId(@Param("roleId") Long roleId);

    int findByResourceId(Long resourceId);

    List<Long> selectByRoleId(@Param("roleId") Long roleId);
}